#define _CRT_SECURE_NO_WARNINGS 1
#include"List.h"

void testList1()
{
	ListNode* plist = ListCreate();
	ListPushBack(plist, 1);
	ListPushBack(plist, 2);
	ListPushBack(plist, 3);
	ListPushBack(plist, 4);
	ListPrint(plist);
	printf("\n");
	//ListPopBack(plist);
	//ListPrint(plist);
	//ListDestory(plist);

}

void testList2()
{
	ListNode* plist = ListCreate();
	ListPushFront(plist, 1);
	ListPushFront(plist, 2);
	ListPushFront(plist, 3);
	ListPushFront(plist, 4);
	ListPrint(plist);
	printf("\n");
	ListPopFront(plist);
	ListPrint(plist);
	ListNode* val=ListFind(plist, 2);
	//ListInsert(val, 5);
	ListErase(val);
	printf("\n");
	ListPrint(plist);


}

int main()
{
	//testList1();
	testList2();

	return 0;
}